/* Vant 主题定制与全局样式 */
:root {
  --van-primary-color: #1989fa;
  --van-success-color: #07c160;
  --van-danger-color: #ee0a24;
  --van-warning-color: #ff976a;
  --van-text-color: #323233;
  --van-active-color: #f2f3f5;
  --van-background-color: #f7f8fa;
  --van-background-color-light: #fafafa;
  --van-text-link-color: #576b95;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, 
    Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--van-text-color);
  background-color: var(--van-background-color);
  font-size: 14px;
}

a {
  color: var(--van-primary-color);
  text-decoration: none;
}

.page-container {
  padding: 16px;
  box-sizing: border-box;
}

.section-title {
  margin: 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: #323233;
}

/* 美食系统特定样式 */
.food-card {
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

.food-card-image {
  width: 100%;
  height: 0;
  padding-bottom: 68%;
  position: relative;
  background-color: #f7f8fa;
}

.food-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.food-card-content {
  padding: 12px;
}

.food-card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.4;
}

.food-card-desc {
  font-size: 13px;
  color: #969799;
  margin: 0 0 8px;
  line-height: 1.6;
}

.food-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  color: #969799;
}

/* 工具类 */
.text-center {
  text-align: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.multi-ellipsis-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spacing-y {
  margin: 12px 0;
}

.spacing-x {
  margin: 0 12px;
}
